<?php

namespace app\user\model;

use think\Model;
use app\common\traits\model\TraitModel;

class WishUsers extends Model
{
    private static $user = [];

    use TraitModel;

    public function wishs()
    {
        return $this->belongsTo('Wishs', 'wish_id');
    }
    public function getWishs($where = [], $with = null)
    {
        return self::with($with)->where($where)->paginate();
    }
}
